package com.sharemarking.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharemarking.system.dto.industry.IndustryDto;
import com.sharemarking.wa.common.entity.Dict;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * Create By SoFunTy
 * 2020/7/31 17:24
 */
public interface IndustryMapper extends BaseMapper<Dict> {

    @Select("SELECT * FROM sys_dict WHERE type = 'org_industry' ORDER BY sort LIMIT #{pageIndex},#{pageSize}")
    List<IndustryDto> getList(Map map);

    @Update("update set label = #{label} WHERE id = #{id}")
    int update(IndustryDto industryDto);
}
